﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="YouVictory.aspx.cs" Inherits="Default2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
    <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Droid+Serif" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">  
    <script src="https://www.google.com/jsapi?key=ABQIAAAAMt9YZQaG_wbfmb2826e_wBTPUDO5TVHJS-HZdrhJpqnB5yZcfRQFObTd1-bPphEIY11228Z78VhA6A"></script>
<script src="../Scripts/mootools-core-1.4.0-full-nocompat.js"></script>
<style type="text/css"> 

    .accordion h3 
{
    
	background: #e9e7e7 url(images/arrow-square.gif) no-repeat right -51px;
	padding: 7px 15px;
	margin: 0;
	font: bold 120%/100% Arial, Helvetica, sans-serif;
	border: solid 1px #c4c4c4;
	border-bottom: none;
	cursor: pointer;
}
.accordion p {
	background: #f7f7f7;
	margin: 0;
	padding:  10px 15px 20px;
	border-left: solid 1px #c4c4c4;
	border-right: solid 1px #c4c4c4;
}
</style>
   <div id="languages"><p>
  <a href="?lang=en" rel="en">English</a>  / <a href="?lang=he" rel="he">Hebrew</a>  /
  <a href="?lang=ru" rel="ru">Russian</a> 
</p></div>
    
<div id="languageBlock">
<asp:Label ID="Label1" runat="server" Text="My name is Kostya. I am love my famaly. My family is small: I, wife and two daughters."></asp:Label>
  <div>
   <h3>Чем вы болели в прошлом году </h3> 
	<p>
    test
     </p> 
  </div>

</div>
<script type="text/javascript">
    var lang = "en";
    var currentClass = "currentLang";

    // Load the language lib
    google.load("language", 1);

    // When the DOM is ready....
    window.addEvent("domready", function () {
        // Retrieve the DIV to be translated.
        var translateDiv = document.id("languageBlock");
        // Define a function to switch from the currentlanguage to another
        var callback = function (result) {
            if (result.translation) {
                translateDiv.set("html", result.translation);
            }
        };
        // Add a click listener to update the DIV
        $$("#languages a").addEvent("click", function (e) {
            // Stop the event
            if (e) e.stop();
            // Get the "to" language
            var toLang = this.get("rel");
            // Set the translation into motion
            google.language.translate(translateDiv.get("html"), lang, toLang, callback);
            // Set the new language
            lang = toLang;
            // Add class to current
            this.getSiblings().removeClass(currentClass);
            this.addClass(currentClass);
        });
    });
</script>




</asp:Content>

